import {BarPageConfig,Navigator} from "../domains/domains";
import {environmentHelper} from "../environment.helper";
import {Injectable} from "@angular/core";

@Injectable()
export class DefaultBarPageConfig extends BarPageConfig{
    get navigators():Navigator[]{
        return [];
    }
    showActionBar(url:string){
        return !environmentHelper.isInWechat();
    };
    showNavigatorBar(url:string):boolean{
        return !!this.navigators.filter((nav:Navigator)=>nav.url==url).length;
    };
}